<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>flex-grow_伸</title>
    <style>
        .outer {
            width: 800px;
            height: 400px;
            background-color: grey;
            /* 开启伸缩 */
            display: flex;
            /* 主轴方向 */
            flex-direction: row;
            /* 主轴的换行方式 */
            flex-wrap: wrap;
            /* 主轴的起始位置 */
            justify-content: flex-start;
            margin: auto;
           
        }
        .inner {
            width: 100px;
            height: 100px;
            background-color: orange;
            border-width: 2px;
            border-style: solid;
            border-color: black;
             /* flex-grow（伸） */
            /* flex-grow: 1; */
        }
        .inner1 {
            background-color: orange;
            flex-grow: 1;
        }
        .inner2 {
            background-color: skyblue;
            flex-grow: 2;
        }
        .inner3 {
            background-color: brown;
            flex-grow: 3;
        }

    </style>
</head>
<body>
    <div class="outer">
        <div class="inner inner1">1</div>
        <div class="inner inner2">2</div>
        <div class="inner inner3">3</div>
    </div>
</body>
</html>
</body>
</html>